.class public Llt/farmis/libraries/externalgps/GPSLocation;
.super Ljava/lang/Object;
.source "GPSLocation.java"


# instance fields
.field public altitude:F

.field public dilution:F

.field public dir:F

.field public fixed:Z

.field public lat:F

.field public lon:F

.field public messageType:Ljava/lang/String;

.field public quality:I

.field public sattelites:I

.field public time:F

.field public velocity:F


# direct methods
.method public constructor <init>()V
    .locals 2

    .line 11
    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    const/4 v0, 0x0

    .line 33
    iput v0, p0, Llt/farmis/libraries/externalgps/GPSLocation;->time:F

    .line 34
    iput v0, p0, Llt/farmis/libraries/externalgps/GPSLocation;->lat:F

    .line 35
    iput v0, p0, Llt/farmis/libraries/externalgps/GPSLocation;->lon:F

    const/4 v1, 0x0

    .line 36
    iput-boolean v1, p0, Llt/farmis/libraries/externalgps/GPSLocation;->fixed:Z

    .line 37
    iput v1, p0, Llt/farmis/libraries/externalgps/GPSLocation;->quality:I

    .line 38
    iput v0, p0, Llt/farmis/libraries/externalgps/GPSLocation;->dir:F

    .line 39
    iput v0, p0, Llt/farmis/libraries/externalgps/GPSLocation;->altitude:F

    .line 40
    iput v0, p0, Llt/farmis/libraries/externalgps/GPSLocation;->velocity:F

    const/high16 v0, -0x40800000    # -1.0f

    .line 41
    iput v0, p0, Llt/farmis/libraries/externalgps/GPSLocation;->dilution:F

    const-string v0, ""

    .line 42
    iput-object v0, p0, Llt/farmis/libraries/externalgps/GPSLocation;->messageType:Ljava/lang/String;

    .line 43
    iput v1, p0, Llt/farmis/libraries/externalgps/GPSLocation;->sattelites:I

    return-void
.end method


# virtual methods
.method public toString()Ljava/lang/String;
    .locals 3

    const/4 v0, 0x7

    .line 48
    new-array v0, v0, [Ljava/lang/Object;

    iget v1, p0, Llt/farmis/libraries/externalgps/GPSLocation;->lat:F

    invoke-static {v1}, Ljava/lang/Float;->valueOf(F)Ljava/lang/Float;

    move-result-object v1

    const/4 v2, 0x0

    aput-object v1, v0, v2

    iget v1, p0, Llt/farmis/libraries/externalgps/GPSLocation;->lon:F

    invoke-static {v1}, Ljava/lang/Float;->valueOf(F)Ljava/lang/Float;

    move-result-object v1

    const/4 v2, 0x1

    aput-object v1, v0, v2

    iget v1, p0, Llt/farmis/libraries/externalgps/GPSLocation;->time:F

    invoke-static {v1}, Ljava/lang/Float;->valueOf(F)Ljava/lang/Float;

    move-result-object v1

    const/4 v2, 0x2

    aput-object v1, v0, v2

    iget v1, p0, Llt/farmis/libraries/externalgps/GPSLocation;->quality:I

    invoke-static {v1}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object v1

    const/4 v2, 0x3

    aput-object v1, v0, v2

    iget v1, p0, Llt/farmis/libraries/externalgps/GPSLocation;->dir:F

    invoke-static {v1}, Ljava/lang/Float;->valueOf(F)Ljava/lang/Float;

    move-result-object v1

    const/4 v2, 0x4

    aput-object v1, v0, v2

    iget v1, p0, Llt/farmis/libraries/externalgps/GPSLocation;->altitude:F

    invoke-static {v1}, Ljava/lang/Float;->valueOf(F)Ljava/lang/Float;

    move-result-object v1

    const/4 v2, 0x5

    aput-object v1, v0, v2

    iget v1, p0, Llt/farmis/libraries/externalgps/GPSLocation;->velocity:F

    invoke-static {v1}, Ljava/lang/Float;->valueOf(F)Ljava/lang/Float;

    move-result-object v1

    const/4 v2, 0x6

    aput-object v1, v0, v2

    const-string v1, "POSITION: lat: %f, lon: %f, time: %f, Q: %d, dir: %f, alt: %f, vel: %f"

    invoke-static {v1, v0}, Ljava/lang/String;->format(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;

    move-result-object v0

    return-object v0
.end method

.method public updatefix()V
    .locals 1

    .line 45
    iget v0, p0, Llt/farmis/libraries/externalgps/GPSLocation;->quality:I

    if-lez v0, :cond_0

    const/4 v0, 0x1

    goto :goto_0

    :cond_0
    const/4 v0, 0x0

    :goto_0
    iput-boolean v0, p0, Llt/farmis/libraries/externalgps/GPSLocation;->fixed:Z

    return-void
.end method
